/*
* $Id: CommonFunction.h 29 2010-02-16 20:37:15Z volok-aleksej@yandex.ru $
*
* Copyright 2008 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _COMMON_FUNCTION_H_
#define _COMMON_FUNCTION_H_

class CCommonFunction
{
public:
	static CFont* GetFont(const std::tstring& strFontName, int sizeFont, bool bBold, bool bItalic, bool bUnderLine = false);
	static COLORREF GetBeeColor();
	static std::tstring GetRegValue(const std::tstring& strNameKey, const std::tstring& strNameValue);
	static void SetRegValue(const std::tstring& strNameKey, const std::tstring& strNameValue, const std::tstring& strValue);
	static bool ValidRegex(const std::tstring& strValue, const std::tstring& strRegex);
};

#endif/*_COMMON_FUNCTION_H_*/
